package com.lysj.admin.utils.validation.annotation;

import com.lysj.admin.utils.validation.validate.EmailValidate;
import com.lysj.admin.utils.validation.validate.MaxValidate;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.ElementType.PARAMETER;

@Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER })
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = EmailValidate.class)
public @interface Email {
    String message();

    Class<?>[] groups() default {};
}
